package com.test;

import org.apache.commons.httpclient.HttpClient;
import org.apache.commons.httpclient.methods.GetMethod;

public class KangLing {
	public static void main(String[] args) throws Exception {
		 HttpClient httpClient = new HttpClient();
	 		GetMethod method = new GetMethod("http://table.finance.yahoo.com/table.csv?s="+600496+".ss");
	 		method.setRequestHeader("Content-Type",
	 				"application/json;charset=UTF-8");
	 		httpClient.getHttpConnectionManager().getParams()
	 				.setConnectionTimeout(50000);
	 		try {
	 			httpClient.executeMethod(method);
	 			String response = method.getResponseBodyAsString();
	 			method.releaseConnection();
	 			System.out.println(response);
	 		} catch (Exception e) {
	 			e.printStackTrace();
	 		}
	}
}
